package com.yanftch.hdc_tools.action

import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.PlatformDataKeys
import com.intellij.openapi.project.Project

abstract class BaseAction : AnAction() {

    override fun actionPerformed(act: AnActionEvent) = actionPerformed(act, act.getData(PlatformDataKeys.PROJECT))

    abstract fun actionPerformed(action: AnActionEvent, project: Project?)

}